package org.deri.vor;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;

public class VovolOceanRaceActivity extends Activity {
	/** Called when the activity is first created. */

	Button Home, Back, About;
	Button button;
	ImageView vor, nuig, deri;
	int lastLayout=1;
	int currentlayout;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		lastLayout= 1;
		Bundle bundle = getIntent().getExtras();
		if (bundle!= null){
			lastLayout = bundle.getInt("cl");
		}
		back();
		
		
	}

	public void common(){
		vor = (ImageView) findViewById(R.id.vor_icon);
		vor.setClickable(true);
		vor.setOnClickListener(vor_icon_listener);

		nuig = (ImageView) findViewById(R.id.nuig_icon);
		nuig.setClickable(true);
		nuig.setOnClickListener(nuig_icon_listener);

		deri = (ImageView) findViewById(R.id.deri_icon);
		deri.setClickable(true);
		deri.setOnClickListener(deri_icon_listener);

		Back = (Button) findViewById(R.id.btnBack);
		Back.setOnClickListener(back_listener);

		About = (Button) findViewById(R.id.btnAbout);
		About.setOnClickListener(about_listener);

		Home = (Button) findViewById(R.id.btnHome);
		Home.setOnClickListener(home_listener);
	}
	
	
	//page1
	Button start;
	private void page1(){
		setContentView(R.layout.page1);
		start = (Button)findViewById(R.id.start);
		start.setOnClickListener(home_listener);
	}
	
	
	
	// page2
	
	ImageView icon1, icon2, icon3;

	private void page2() {
		setContentView(R.layout.page2);
		lastLayout = currentlayout; 
		currentlayout =	2;

		common();
		
		icon1 = (ImageView) findViewById(R.id.id_icon1);
		icon1.setClickable(true);
		icon1.setOnClickListener(icon1_listener);

		icon2 = (ImageView) findViewById(R.id.id_icon2);
		icon2.setClickable(true);
		icon2.setOnClickListener(icon2_listener);

		icon3 = (ImageView) findViewById(R.id.id_icon3);
		icon3.setClickable(true);
		icon3.setOnClickListener(icon3_listener);

		ImageButton ib;
		ib = (ImageButton) findViewById(R.id.btn_sensor);
		ib.setOnClickListener(ms_listener);

		ib = (ImageButton) findViewById(R.id.btn_Socializer);
		ib.setOnClickListener(social_listener);

		ib = (ImageButton) findViewById(R.id.btn_Locator);
		ib.setOnClickListener(tag_listener);
		
		ib = (ImageButton)findViewById(R.id.btn_Tweets);
		ib.setOnClickListener(tw_lis);

	}

	// page3
	Button tvor, tsi, rm, gv, vorf;

	private void page3() {
		setContentView(R.layout.page3);
		lastLayout = currentlayout; 
		currentlayout =	3;
		common();

		tvor = (Button) findViewById(R.id.btn_TVOR);
		tvor.setOnClickListener(tvor_listener);

		tsi = (Button) findViewById(R.id.btn_TSI);
		tsi.setOnClickListener(tsi_listener);

		rm = (Button) findViewById(R.id.btn_FEST);
		rm.setOnClickListener(rm_listener);

		gv = (Button) findViewById(R.id.btn_GV);
		gv.setOnClickListener(gv_listener);

		vorf = (Button) findViewById(R.id.btn_VORF);
		vorf.setOnClickListener(vorf_listener);
	}

	private OnClickListener tvor_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page4();
		}
	};

	private OnClickListener tsi_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page5();
		}
	};

	private OnClickListener rm_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			 page12();
		}
	};

	private OnClickListener gv_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			 page13();
		}
	};

	private OnClickListener vorf_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			 page18();
		}
	};

	// page4
	private void page4() {
		setContentView(R.layout.page4);
		lastLayout = currentlayout; 
		currentlayout =	4;
		
//		TextView tv;
//		tv = (TextView)findViewById(R.id.tv1);
//		tv.setText(R.string.page4);
//		
//		tv = (TextView)findViewById(R.id.title);
//		tv.setText(R.string.title4);
//		tv.setTextColor(Color.parseColor("#ff7100"));
//		tv.setTextSize(16);
		common();
	}

	// page5
	ImageView ador, cetnz, gst, porb, ts, tt;

	private void page5() {
		setContentView(R.layout.page5);
		lastLayout = currentlayout; 
		currentlayout =	5;

		common();

		ador = (ImageView) findViewById(R.id.btn_ADOR);
		ador.setOnClickListener(ador_listener);

		cetnz = (ImageView) findViewById(R.id.btn_CETNZ);
		cetnz.setOnClickListener(cetnz_listener);

		gst = (ImageView) findViewById(R.id.btn_GST);
		gst.setOnClickListener(gst_listener);

		porb = (ImageView) findViewById(R.id.btn_PORB);
		porb.setOnClickListener(porb_listener);

		ts = (ImageView) findViewById(R.id.btn_TS);
		ts.setOnClickListener(ts_listener);

		tt = (ImageView) findViewById(R.id.btn_TT);
		tt.setOnClickListener(tt_listener);
	}

	private OnClickListener ador_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page6();
		}
	};

	private OnClickListener cetnz_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page7();
		}
	};

	private OnClickListener gst_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page8();
		}
	};

	private OnClickListener porb_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page9();
		}
	};

	private OnClickListener ts_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page10();
		}
	};

	private OnClickListener tt_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page11();
		}
	};

	// page6
	private void page6() {
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 6;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.abor));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page6);
		tv = (TextView)findViewById(R.id.title);
		tv.setTextColor(Color.parseColor("#ff7100"));
		tv.setText(R.string.title6);
		common();
	}

	// page7
	private void page7() {
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 7;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.cetnz));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page7);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title7);
		tv.setTextColor(Color.parseColor("#ff7100"));
		common();
	}

	// page8
	private void page8() {
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 8;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.gst));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page8);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title8);
		tv.setTextColor(Color.parseColor("#ff7100"));
		common();
	}

	// page9
	private void page9() {
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 9;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.porpb));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page9);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title9);
		tv.setTextColor(Color.parseColor("#ff7100"));
		common();
	}

	// page10
	private void page10() {
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 10;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.ts));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page10);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title10);
		tv.setTextColor(Color.parseColor("#ff7100"));
		common();
	}

	// page11
	private void page11() {
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 11;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.tt));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page11);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title11);
		tv.setTextColor(Color.parseColor("#ff7100"));
		common();
	}

	// page12
	private void page12() {
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	12;
		
//		ImageView im = (ImageView)findViewById(R.id.id_img);
//		im.setImageDrawable(getResources().getDrawable(R.drawable.rt));
		
		TextView  tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page12);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title12);
		tv.setTextSize(16);
		tv.setTextColor(Color.parseColor("#ff7100"));
		
		common();
	}

	//page13
	ImageView marine, innovation, green, food;
	private void page13(){
		setContentView(R.layout.page13);
		lastLayout = currentlayout; 
		currentlayout =	13;

		common();
		
		marine = (ImageView) findViewById(R.id.id_marine);
		marine.setClickable(true);
		marine.setOnClickListener(marine_listener);
		
		innovation = (ImageView) findViewById(R.id.id_innovation);
		innovation.setClickable(true);
		innovation.setOnClickListener(innovation_listener);
		
		green = (ImageView) findViewById(R.id.id_green);
		green.setClickable(true);
		green.setOnClickListener(green_listener);
		
		food = (ImageView) findViewById(R.id.id_food);
		food.setClickable(true);
		food.setOnClickListener(food_listener);
	}
	
	private OnClickListener marine_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page14();
		}
	};
	
	private OnClickListener innovation_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page15();
		}
	};
	
	private OnClickListener green_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page16();
		}
	};
	
	private OnClickListener food_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page17();
		}
	};
	
	//page14
	private void page14(){
		setContentView(R.layout.page14_17);
		lastLayout    = currentlayout; 
		currentlayout = 14;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.marine));
		TextView  tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page14);
		common();
	}
	
	//page15
	private void page15(){
		setContentView(R.layout.page14_17);
		lastLayout    = currentlayout; 
		currentlayout = 15;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.innovation));
		TextView  tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page15);
		common();
	}
	
	//page16
	private void page16(){
		setContentView(R.layout.page14_17);
		lastLayout    = currentlayout; 
		currentlayout = 16;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.green));
		TextView  tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page16);
		common();
	}
	
	//page17
	private void page17(){
		setContentView(R.layout.page14_17);
		lastLayout    = currentlayout; 
		currentlayout = 17;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.food));
		TextView  tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page17);
		common();
	}

	//page18
	private void page18(){
//		setContentView(R.layout.pageimagestring);
//		lastLayout    = currentlayout; 
//		currentlayout = 18;
//		ImageView im = (ImageView)findViewById(R.id.id_img);
//		im.setImageDrawable(getResources().getDrawable(R.drawable.fashion));
//		TextView  tv = (TextView)findViewById(R.id.id_tv);
//		tv.setText(R.string.page18);
//		tv = (TextView)findViewById(R.id.title);
//		tv.setText(R.string.title18);
//		tv.setTextColor(Color.parseColor("#ff7100"));
//		common();
		page70();
	}
	
	//page 19
	Button mission, research, unit, director, contact;
	private void page19(){
		setContentView(R.layout.page19);
		lastLayout = currentlayout; 
		currentlayout =	19;
		common();
		
		mission = (Button) findViewById(R.id.btn_Misson);
		mission.setOnClickListener(page19_listener);
		
		research = (Button) findViewById(R.id.btn_Research);
		research.setOnClickListener(page19_listener);
	
		unit = (Button) findViewById(R.id.btn_Units);
		unit.setOnClickListener(page19_listener);
		
		director = (Button) findViewById(R.id.btn_director);
		director.setOnClickListener(page19_listener);
		
		
		contact = (Button) findViewById(R.id.btn_contact);
		contact.setOnClickListener(page19_listener);
		
	}
	
	private OnClickListener page19_listener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()){
				case R.id.btn_Misson:   {page20(); break;}
				case R.id.btn_Research: {page21(); break;}
				case R.id.btn_Units:	{page22(); break;}
				case R.id.btn_director: {page38(); break;}
				case R.id.btn_contact:  {page39(); break;}
			}
		}
	};

	//page20
	private void page20(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	20;
		
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page20);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title20);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		common();
	}
	
	//page21
	private void page21(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	21;
		
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page21);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title21);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		common();
	}
	
	//page22
	private void page22(){
		setContentView(R.layout.page22);
		lastLayout = currentlayout; 
		currentlayout =	22;
		
		button = (Button)findViewById(R.id.btn_DAI);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_UDI2);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_DEB);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_DEG);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_DGSIT);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_DHCLS);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_DIA);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_UIMR);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_UNLP);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_URQ);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_USPT);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_USCS);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_USM);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_USOA);
		button.setOnClickListener(page22_listener);
		
		button = (Button)findViewById(R.id.btn_USS);
		button.setOnClickListener(page22_listener);
		
		common();
	}
	
	private OnClickListener page22_listener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch (v.getId()){
				case R.id.btn_DAI  : { page23(); break;}
				case R.id.btn_UDI2 : { page24(); break;}
				case R.id.btn_DEB  : { page25(); break;}
				case R.id.btn_DEG  : { page26(); break;}
				case R.id.btn_DGSIT : { page27(); break;}
				case R.id.btn_DHCLS : { page28(); break;}
				case R.id.btn_DIA 	: { page29(); break;}
				case R.id.btn_UIMR 	: { page30(); break;}
				case R.id.btn_UNLP 	: { page31(); break;}
				case R.id.btn_URQ 	: { page32(); break;}
				case R.id.btn_USPT 	: { page33(); break;}
				case R.id.btn_USCS 	: { page34(); break;}
				case R.id.btn_USM 	: { page35(); break;}
				case R.id.btn_USOA 	: { page36(); break;}
				case R.id.btn_USS 	: { page37(); break;}
				
			}
		}
	};

	//page23
	private void page23(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	23;
		
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page23);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	//page24
	private void page24(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	24;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page24);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	//page25
	private void page25(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	25;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page25);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	//page26
	private void page26(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	26;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page26);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	//page27
	private void page27(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	27;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page27);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	//page28
	private void page28(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	28;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page28);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}

	//page29
	private void page29(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	29;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page29);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	//page30
	private void page30(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	30;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page30);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}

	//page24
	private void page31(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	31;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page31);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}

	//page32
	private void page32(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	32;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page32);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	//page33
	private void page33(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	33;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page33);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}

	
	//page34
	private void page34(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	34;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page34);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}

	
	//page35
	private void page35(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	35;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page35);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}

	
	//page36
	private void page36(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	36;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page36);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}

	
	//page37
	private void page37(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	37;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page37);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title23);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}

	//page38
	private void page38() {
		setContentView(R.layout.page38);
		lastLayout = currentlayout; 
		currentlayout =	38;
		
		common();
	}
	//page39
	private void page39(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	39;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page39);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title39);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
//	tv.setTextColor(Color.parseColor("#009bff"));
	//page40
	private void page40(){
		setContentView(R.layout.page40);
		lastLayout = currentlayout; 
		currentlayout =	40;
		
		button = (Button)findViewById(R.id.btn_Nuig);
		button.setOnClickListener(page40_listener);
		button = (Button)findViewById(R.id.btn_SF);
		button.setOnClickListener(page40_listener);
		button = (Button)findViewById(R.id.btn_School);
		button.setOnClickListener(page40_listener);
		button = (Button)findViewById(R.id.btn_Re);
		button.setOnClickListener(page40_listener);
		button = (Button)findViewById(R.id.btn_BI);
		button.setOnClickListener(page40_listener);
		button = (Button)findViewById(R.id.btn_CT);
		button.setOnClickListener(page40_listener);
		
		common();
	}
	
		
	private OnClickListener page40_listener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()){
				case R.id.btn_Nuig: 	{page41(); break;}
				case R.id.btn_SF: 		{page42(); break;}
				case R.id.btn_School: 	{page43(); break;}
				case R.id.btn_Re: 		{page44(); break;}
				case R.id.btn_BI: 		{page45(); break;}
				case R.id.btn_CT: 		{page46(); break;}
			}
		}
	};
	
	//page41
	private void page41() {
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	41;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page41);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title41);
		tv.setTextColor(Color.parseColor("#8400ff"));
		tv.setTextSize(16);
		common();
	}

	//page42
	private void page42() {
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	42;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page42);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title42);
		tv.setTextColor(Color.parseColor("#8400ff"));
		tv.setTextSize(16);
		common();
	}

	//page43
	private void page43() {
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	43;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page43);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title43);
		tv.setTextColor(Color.parseColor("#8400ff"));
		tv.setTextSize(16);
		common();
	}

	//page44
	private void page44() {
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	44;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page44);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title44);
		tv.setTextColor(Color.parseColor("#8400ff"));
		tv.setTextSize(16);
		common();
	}

	//page45
	private void page45() {
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	45;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page45);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title45);
		tv.setTextColor(Color.parseColor("#8400ff"));
		tv.setTextSize(16);
		common();
	}
	
	//page46
	private void page46() {
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	46;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page46);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title46);
		tv.setTextColor(Color.parseColor("#8400ff"));
		tv.setTextSize(16);
		
		common();
	}
	
	//page52
	private void page52(){
		setContentView(R.layout.page52);
		lastLayout = currentlayout; 
		currentlayout =	52;
		
		button = (Button)findViewById(R.id.btn_TFV);
		button.setOnClickListener(page52_listener);
		button = (Button)findViewById(R.id.btn_PA);
		button.setOnClickListener(page52_listener);
		button = (Button)findViewById(R.id.btn_Loca);
		button.setOnClickListener(page52_listener);
		button = (Button)findViewById(R.id.btn_CA);
		button.setOnClickListener(page52_listener);
		button = (Button)findViewById(R.id.btn_VG);
		button.setOnClickListener(page52_listener);
		button = (Button)findViewById(R.id.btn_EN);
		button.setOnClickListener(page52_listener);
		
		common();
	}
	
	private OnClickListener page52_listener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()){
				case R.id.btn_TFV: 	{page53(); break;}
				case R.id.btn_PA: 	{page54(); break;}
				case R.id.btn_Loca:	{page55(); break;}
				case R.id.btn_CA: 	{page61(); break;}
				case R.id.btn_VG: 	{page68(); break;}
				case R.id.btn_EN: 	{page69(); break;}
			}
		}
	};
	
	//page53
	private void page53(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	53;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page53);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title53);
		tv.setTextColor(Color.parseColor("#009bff"));
		tv.setTextSize(16);
		common();
	}
	
	//page54
	private void page54(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	54;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page54);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title54);
		tv.setTextColor(Color.parseColor("#009bff"));
		tv.setTextSize(16);
		common();
	}

	
	//page55
	private void page55(){
		setContentView(R.layout.page55);
		lastLayout = currentlayout; 
		currentlayout =	55;
		
		button = (Button)findViewById(R.id.btn_GC);
		button.setOnClickListener(page55_listener);
		button = (Button)findViewById(R.id.btn_SH);
		button.setOnClickListener(page55_listener);
		button = (Button)findViewById(R.id.btn_CO);
		button.setOnClickListener(page55_listener);
		button = (Button)findViewById(R.id.btn_AI);
		button.setOnClickListener(page55_listener);
		button = (Button)findViewById(R.id.btn_EG);
		button.setOnClickListener(page55_listener);
		
		common();		
	}

	private OnClickListener page55_listener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()){
				case R.id.btn_GC: 	{page56(); break;}
				case R.id.btn_SH: 	{page57(); break;}
				case R.id.btn_CO:	{page58(); break;}
				case R.id.btn_AI: 	{page59(); break;}
				case R.id.btn_EG: 	{page60(); break;}
			}
		}
	};
	
	
	//page56
	private void page56() {
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 56;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a56));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page56);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title56);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}

	//page57
	private void page57(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 57;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a57));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page57);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title57);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}
	
	//page58
	private void page58(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 58;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a58));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page58);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title58);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}

	//page59
	private void page59(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 59;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a59));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page59);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title59);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}
	
	//page60
	private void page60(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 60;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a60));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page60);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title60);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}
	
	//page61
	private void page61(){
		setContentView(R.layout.page61);
		lastLayout = currentlayout; 
		currentlayout =	61;
		
		button = (Button)findViewById(R.id.btn_AT);
		button.setOnClickListener(page61_listener);
		button = (Button)findViewById(R.id.btn_HS);
		button.setOnClickListener(page61_listener);
		button = (Button)findViewById(R.id.btn_AH);
		button.setOnClickListener(page61_listener);
		button = (Button)findViewById(R.id.btn_BO);
		button.setOnClickListener(page61_listener);
		button = (Button)findViewById(R.id.btn_GM);
		button.setOnClickListener(page61_listener);
		button = (Button)findViewById(R.id.btn_RP);
		button.setOnClickListener(page61_listener);		
		
		common();		
		
	}

	private OnClickListener page61_listener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()){
				case R.id.btn_AT: 	{page62(); break;}
				case R.id.btn_HS: 	{page63(); break;}
				case R.id.btn_AH:	{page64(); break;}
				case R.id.btn_BO: 	{page65(); break;}
				case R.id.btn_GM: 	{page66(); break;}
				case R.id.btn_RP: 	{page67(); break;}
			}
		}
	};
	
	//page62
	private void page62(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 62;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a62));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page62);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title62);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}
	
	//page63
	private void page63(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 63;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a63));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page63);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title63);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}

	//page64
	private void page64(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 64;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a64));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page64);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title64);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}

	
	//page65
	private void page65(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 65;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a65));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page65);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title65);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}
	
	//page66
	private void page66(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 66;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a66));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page66);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title66);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}

	//page66
	private void page67(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 67;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a67));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page67);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title67);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}

	private void page68(){
		setContentView(R.layout.pageimagestring);
		lastLayout    = currentlayout; 
		currentlayout = 68;
		ImageView im = (ImageView)findViewById(R.id.id_img);
		im.setImageDrawable(getResources().getDrawable(R.drawable.a68));
		TextView  tv = (TextView)findViewById(R.id.id_tv);
		tv.setText(R.string.page68);
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title68);
		tv.setTextColor(Color.parseColor("#009bff"));
		common();
	}

	private void page69(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	69;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page69);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title69);
		tv.setTextColor(Color.parseColor("#009bff"));
		tv.setTextSize(16);
		
		common();
	}
	
	private void page70(){
		setContentView(R.layout.page70);
		lastLayout = currentlayout; 
		currentlayout =	70;
		
		ImageView im = (ImageView)findViewById(R.id.btn_LN);
		im.setOnClickListener(page70_listener);
		im = (ImageView)findViewById(R.id.btn_FB);
		im.setOnClickListener(page70_listener);
		im = (ImageView)findViewById(R.id.btn_FL);
		im.setOnClickListener(page70_listener);
		im = (ImageView)findViewById(R.id.btn_TW);
		im.setOnClickListener(page70_listener);
		
		common();
	}
	
	private OnClickListener page70_listener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()){
				case R.id.btn_LN: 	{
									 Intent i	=	new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.volvooceanrace.com/en/home.html"));
									 startActivity(i);
									 break;}
				case R.id.btn_FB: 	{Intent i	=	new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.volvooceanracegalway.ie/en-gb/socialmedia.aspx"));
				 					 startActivity(i);
				 					 break;}
				case R.id.btn_FL:	{Intent i	=	new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/volvooceanracevideos"));
				 					 startActivity(i); 
				                     break;}
				case R.id.btn_TW: 	{Intent i	=	new Intent(Intent.ACTION_VIEW, Uri.parse("http://twitter.com/#!/volvo_oceanrace"));
				 					 startActivity(i); 
				                     break;}
			}
		}
	};
	
	private void page71(){
		setContentView(R.layout.page71);
		lastLayout = currentlayout; 
		currentlayout =	72;
		common();
	}
	
	private void page72(){
		setContentView(R.layout.page72);
		lastLayout = currentlayout; 
		currentlayout =	72;
		
		button	=	(Button)findViewById(R.id.btn_DERI);
		button.setOnClickListener(page72_listener);
		button	=	(Button)findViewById(R.id.btn_GC);
		button.setOnClickListener(page72_listener);
		button	=	(Button)findViewById(R.id.btn_CR);
		button.setOnClickListener(page72_listener);
		button	=	(Button)findViewById(R.id.btn_CRI);
		button.setOnClickListener(page72_listener);
		button	=	(Button)findViewById(R.id.btn_LA);
		button.setOnClickListener(page72_listener);
		
		common();
	}
	
	private OnClickListener page72_listener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()){
				case R.id.btn_DERI: {page73(); break;}
				case R.id.btn_GC: 	{page74(); break;}
				case R.id.btn_CR:	{page75(); break;}
				case R.id.btn_CRI: 	{page76(); break;}
				case R.id.btn_LA: 	{page77(); break;}
				
			}
		}
	};
	
	
	private void page73(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	69;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page73);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title73);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	
	private void page74(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	74;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page74);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title74);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	private void page75(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	75;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page75);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title75);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	private void page76(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	76;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page76);
		
		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title76);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	private void page77(){
		setContentView(R.layout.pagestring);
		lastLayout = currentlayout; 
		currentlayout =	77;
			
		TextView tv;
		tv = (TextView)findViewById(R.id.tv1);
		tv.setText(R.string.page77);

		tv = (TextView)findViewById(R.id.title);
		tv.setText(R.string.title77);
		tv.setTextColor(Color.parseColor("#42a62a"));
		tv.setTextSize(16);
		
		common();
	}
	
	
	
	
	
	
	
	
	
	// vor_icon
	private OnClickListener vor_icon_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page3();
		}
	};

	private OnClickListener deri_icon_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page19();
		}
	};

	private OnClickListener nuig_icon_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page40();
		}
	};

	private OnClickListener about_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page72();
		}
	};

	private OnClickListener home_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page2();
		}
	};

	private OnClickListener back_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			back();
		}
	};
	
	
	private void tweets(){
		setContentView(R.layout.tweet_main);
		lastLayout = currentlayout; 
		currentlayout =	78;
			
		Button button = (Button)findViewById(R.id.tweets_start);	
		button.setOnClickListener(tw_listener);
		common();
	}

	public void back(){
		switch (lastLayout){
		case 1:  {page1();  break;}
		case 2:  {page2();  break;}
		case 3:  {page3();  break;}
		case 4:  {page4();  break;}
		case 5:  {page5();  break;}
		case 6:  {page6();  break;}
		case 7:  {page7();  break;}
		case 8:  {page8();  break;}
		case 9:  {page9();  break;}
		case 10: {page10(); break;}
		case 11: {page11(); break;}
		case 12: {page12(); break;}
		case 13: {page13(); break;}
		case 14: {page14(); break;}
		case 15: {page15(); break;}
		case 16: {page16(); break;}
		case 17: {page17(); break;}
		case 18: {page18(); break;}
		case 19: {page19(); break;}
		case 20: {page20(); break;}
		case 21: {page21(); break;}
		case 22: {page22(); break;}
		case 23: {page23(); break;}
		case 24: {page24(); break;}
		case 25: {page25(); break;}
		case 26: {page26(); break;}
		case 27: {page27(); break;}
		case 28: {page28(); break;}
		case 29: {page29(); break;}
		case 30: {page30(); break;}
		case 31: {page31(); break;}
		case 32: {page32(); break;}
		case 33: {page33(); break;}
		case 34: {page34(); break;}
		case 35: {page35(); break;}
		case 36: {page36(); break;}
		case 37: {page37(); break;}
		case 38: {page38(); break;}
		case 39: {page39(); break;}
		case 40: {page40(); break;}
		case 41: {page41(); break;}
		case 42: {page42(); break;}
		case 43: {page43(); break;}
		case 44: {page44(); break;}
		case 45: {page45(); break;}
		case 46: {page46(); break;}
		case 52: {page52(); break;}
		case 53: {page53(); break;}
		case 54: {page54(); break;}
		case 55: {page55(); break;}
		case 56: {page56(); break;}
		case 57: {page57(); break;}
		case 58: {page58(); break;}
		case 59: {page59(); break;}
		case 60: {page60(); break;}
		case 61: {page61(); break;}
		case 62: {page62(); break;}
		case 63: {page63(); break;}
		case 64: {page64(); break;}
		case 65: {page65(); break;}
		case 66: {page66(); break;}
		case 67: {page67(); break;}
		case 68: {page68(); break;}
		case 69: {page69(); break;}
		case 70: {page70(); break;}
		case 71: {page71(); break;}
		case 72: {page72(); break;}
		case 73: {page73(); break;}
		case 74: {page74(); break;}
		case 75: {page75(); break;}
		case 76: {page76(); break;}
		case 77: {page77(); break;}
		case 78: {tweets(); break;}
		

		default: page2();
	}
	}
	
	private OnClickListener icon1_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page71(); 

		}
	};

	private OnClickListener icon2_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page70();
			
		}
	};

	private OnClickListener icon3_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			page52();
		}
	};

	OnClickListener ms_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			Intent i = new Intent();
			i.setClassName("org.deri.vor","org.deri.vor.mobilesensing.MobileSensing");
			startActivity(i);
			finish();
		}
	};

	OnClickListener social_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			Intent i = new Intent();
			i.setClassName("org.deri.vor",
					"org.deri.socializer.activities.start.StartActivity");
			startActivity(i);
			finish();
		}
	};

	OnClickListener tag_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			Intent i = new Intent();
			i.setClassName("org.deri.vor","com.deri.egov.vor.POISearchActivity");
			startActivity(i);
			finish();
		}
	};
	
	OnClickListener tw_lis = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			tweets();
		}
	};
	
	OnClickListener tw_listener = new OnClickListener() {
		@Override
		public void onClick(View arg0) {
			Intent i	=	new Intent(Intent.ACTION_VIEW, Uri.parse("http://uimr.deri.ie/vor2012"));
			startActivity(i);
		}
	};

}

